#ifndef _RTEA_H
#define _RTEA_H

#include <assert.h>

/* 256-bit RTEA encryption algorithm */

static const unsigned int RTEA_KEY[8] = 
                        {0xfacefeed, 0xfacefeed, 0xfacefeed, 0xfacefeed,
                         0xfacefeed, 0xfacefeed, 0xfacefeed, 0xfacefeed };

static const unsigned int BOOT_KEY[8] = 
                        {0xfacefeed, 0xdeadbeef, 0xfacefeed, 0xdeadbeef,
                         0xdeadbeef, 0xfacefeed, 0xdeadbeef, 0xfacefeed };                      

void rtea_encrypt(unsigned int* data, int length, const unsigned int* key);
void rtea_decrypt(unsigned int* data, int length, const unsigned int* key);

void rtea_encrypt_block(unsigned int* data, const unsigned int* key);
void rtea_decrypt_block(unsigned int* data, const unsigned int* key);


#endif /* _RTEA_H */